package core.command
{
	import core.event.SocketEventID;
	import core.event.UnoEvent;
	import core.event.ViewEventID;
	
	public class StandUpCommand extends SuperCommand
	{
		public function StandUpCommand()
		{
			socketEvent = SocketEventID.STAND_UP;
			viewEvent = ViewEventID.ENTER_ROOM_NEW;
		}
		override public function success(e:UnoEvent):void
		{
			db.tableList = e.data.tableList;
			db.userList = e.data.userList;
			db.loginUser.setup(db.userList[db.loginUser.userID]);
		}
	}
}